//package org.ricks.orm.mongodb.asm;
//
//import org.ricks.common.asm.ClassReader;
//import org.ricks.common.asm.ClassVisitor;
//import org.ricks.common.asm.Opcodes;
//import org.ricks.common.utils.FileUtils;
//
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//import java.io.IOException;
//import java.util.Objects;
//
///**
// * @Author ricks [chenwei]
// * @Version [v1.0]
// * @CreateTime 2024-06-11   16:10
// * @Description TODO
// */
//
//public class HelloWorldAnalysisCore {
//    public static void main(String[] args) throws IOException {
//
//        String path = Objects.requireNonNull(HelloWorldAnalysisCore.class.getResource("")).getPath();
//        System.err.println(path);
//
//        String relative_path = path + "HelloWorld.class";
//        FileInputStream fileInputStream = new FileInputStream(relative_path);
////        byte[] bytes = FileUtils(filepath);
////        byte[] bytes = new byte[0];
//        ClassReader cr = new ClassReader(fileInputStream);
//
//        //（1）构建ClassReader
//
//        //（2）分析ClassVisitor
//        int api = Opcodes.ASM9;
//        ClassVisitor cv = new MethodFindInvokeVisitor(api, null, "test", "(II)V");
//
//        //（3）结合ClassReader和ClassVisitor
//        int parsingOptions = ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES;
//        cr.accept(cv, parsingOptions);
//
//        HelloWorld helloWorld = new HelloWorld();
//        helloWorld.test(1,2,3);
//        fileInputStream.close();
//    }
//}